package YZ.Students.Mier.Dao;

import java.util.List;

/**
 * @className: BaseDao
 * @author: shuishui
 * @date: 2022/12/02 9:32
 */
public interface BaseDao<T> {

    // 插入操作
    public Integer insert(T t) throws Exception;

    // 根据id来查询
    public T selectById(Integer id)  throws Exception;

    // 根据id来更新
    public Integer updateById(T t)  throws Exception;

    // 根据id删除
    public Integer deleteById(Integer id)  throws Exception;

    // 查询全部
    public List<T> selectList()  throws Exception;

    public Integer batchRemove(List<Integer> ids) throws Exception;
}
